import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import member from './modules/member'
import tagsView from './modules/tagsView'
import menu from './modules/menu'
import getters from './getters'
import per from './modules/per'
import courseware from './modules/courseware'
import assignTask from './modules/kanke/assignTask'
Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    loading: false,
  },
  mutations: {
    SetBaseLoading(state, loading) {
      state.loading = loading
    },
  },
  modules: {
    app: app,
    tagsView: tagsView,
    member: member,
    menu: menu,
    per: per,
    courseware,
    assignTask,
  },
  getters,
})

export default store
